<ion-view view-title="{{titleName}}">
	<ion-nav-buttons side="right">
	    <div class="map" ui-sref="home">
	    	<i class="icon iconfont icon-home"></i>
			<span>医院首页</span>
	    </div>
	</ion-nav-buttons>
	<ion-content overflow-scroll="true" class="select_office contentTop_cls">
		<div class="select_search">
			<i class="icon iconfont icon-search searchIcon"></i>
			<input type="text" placeholder="搜索科室" ng-model="searchCont.key" ng-change="inputSearch()" />
			<i class="icon ion-close-circled clearBtn" ng-if="searchCont.key.length" ng-click="clearBtn()"></i>
		</div>
		<div class="select_officeBox">
			<div class="nav">
				<ul>
					<li ng-repeat="office in offices" ng-class="{'active':$index==liIndex}" ng-click="navClick($index)"><div><img ng-show="$index==0" src="img/historyIcon.png"/>{{office.name}}</div></li>
				</ul>
			</div>
			<div class="officeBoxs">
				<div class="office_box" ng-repeat="officebox in offices" ng-show="$index==liIndex">
					<div class="tipTop" ng-show="$index==0">
						<span>各记录左划可删</span>
						<i ng-click="distoryFn()">清空历史</i>
					</div>
					<ion-list ng-class="{'paddingTop':$index==0}">
						<ion-item ng-repeat="officeitem in officebox.office_data" ui-sref="selectDoctors({deId:officeitem.code,deName:officeitem.name})">
							{{officeitem.name}}
							<ion-option-button class="button-assertive" ng-show="liIndex==0" ng-click="onItemDelete(officeitem.code)">删除</ion-option-button>
						</ion-item>
					</ion-list>
				</div>
			</div>
		</div>
		<div class="filter" ng-if="searchCont.key.length">
			<ul>
				<li ng-repeat="sitem in searchOffices" ui-sref="selectDoctors({deId:sitem.scode,deName:sitem.sName})"
                     >{{sitem.pName}}&nbsp;>&nbsp;{{sitem.sName}}</li>
			</ul>
		</div>
	</ion-content>
</ion-view>